package com.gcxy.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.List;

@Data
@Api(value = "牧场添加数据传输对象")
public class RanchAddDTO {
    @ApiModelProperty(value = "牧场名称",required=true)
    @NotBlank(message = "牧场名称不能为空")
    @Size(max = 100,message = "牧场名称不能超过100个字符")
    private String ranchName;
    @ApiModelProperty(value = "场地规模",required=true)
    @NotNull(message = "场地规模不能为空")
    @DecimalMin(value = "100", message = "场地规模不能小于 100")
    @DecimalMax(value = "999999", message = "场地规模不能超过 999999")
    private Integer fieldScale;
    @ApiModelProperty(value = "养殖规模",required=true)
    @NotNull(message = "养殖规模不能为空")
    @Max(value = 999999, message = "养殖规模不能超过 999999")
    private Integer feedScale;
    @ApiModelProperty(value = "地址")
    @NotEmpty(message = "地址列表不能为空")
    private List<Integer> cityList;
    @ApiModelProperty(value = "详细地址",required=true)
    @NotBlank(message = "详细地址不能为空")
    private String addrDetail;
    @ApiModelProperty(value = "经度",required=true)
    @NotNull(message = "经度不能为空")
    private BigDecimal longitude;
    @ApiModelProperty(value = "纬度",required=true)
    @NotNull(message = "纬度不能为空")
    private BigDecimal latitude;
    @ApiModelProperty(value = "数据字典编号",required=true)
    @NotNull(message = "数据字典编号不能为空")
    private Integer valId;
}
